#include <qt4/QtCore/qglobal.h>

#include "uzyteczne_funkcje.h"


void showWarning(const QString &msg) {
    QMessageBox::warning(0, "Warning", msg,
            QMessageBox::Ok,
            QMessageBox::NoButton,
            QMessageBox::NoButton);
}

double losuj(double min,double max)
{
   return min+(double)qrand()/(double)RAND_MAX*(max-min);
    
    
}
int losuj(int min,int max)
{
    return min+(int)((double)rand()/(double)RAND_MAX*(double)(max-min+1));
    
    
}